package cn.cque.dao;

import cn.cque.entity.Category;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * Created with IntelliJ IDEA.
 *
 * @author: XWC
 * @InterfaceName: CategoryDao
 * @Date: 2020/10/4
 * @Time: 18:39
 * @Description:
 */
public interface CategoryDao {
    Category findById(@Param("cid") String cid);
    List<Category> findAll();
    Integer addCategory(Category category);
    Integer deleteCategory(@Param("cid") String cid);
    Integer updateCategory(Category category);
}
